package com.desire.bean.sys;

import com.desire.common.validation.group.Modify;
import com.desire.common.validation.group.Save;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author LittleDesire
 * @description
 * @date 2022-05-14 周六 16:44
 * @since 17
 */
@Data
public class Dept {
    @NotBlank(message = "部门id不能为空", groups = {Modify.class})
    String id;
    @NotBlank(message = "部门名称不能为空", groups = {Save.class, Modify.class})
    String name;
    String pid;
    int sorts;
    String deptno;
    String note;
    @NotBlank(message = "企业用户id不能为空", groups = {Save.class})
    String euid;
}
